<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">
    <body>
        <ui:composition template="template/templateIntern.xhtml">  
            <ui:define name="pageTitle">                
                <h:outputText value="timeitj - Create project" />    
            </ui:define>              
            <ui:define name="bodyContent">
                <h1><h:outputText value="New project" /></h1>
                <h:form>
                    <h:messages infoClass="info" warnClass="warn" errorClass="error" />
                    <h:panelGrid columns="2">
                        <h:outputLabel for="projectName" value="Project name: " />
                        <h:panelGroup>
                            <h:inputText id="projectName" value="#{ProjectController.project.name}" />
                            <h:message for="projectName" infoClass="info" warnClass="warn" errorClass="error" />
                        </h:panelGroup>
                        <h:outputLabel for="description" value="Description: " />
                        <h:panelGroup>
                            <h:inputText id="description" value="#{ProjectController.project.description}" />
                            <h:message for="description" infoClass="info" warnClass="warn" errorClass="error" />
                        </h:panelGroup>
                        <h:commandButton value="create project" action="#{ProjectController.createProject}" />
                        <h:commandButton value="reset" type="reset" />
                    </h:panelGrid>
                </h:form>
            </ui:define>
        </ui:composition>
    </body>
</html>
